<?php if(!IS_AJAX){?>

<include file="Public:header" />
<div class="row">
  <div class="col-sm-7 col-md-8 col-lg-9">
    <section class="panel">
      <div class="panel-body">
        <table class="table-bordered table" width="100%" border="0" cellspacing="0" cellpadding="0">
          <thead>
            <tr>
              <td align="center">订单号</td>
              <td align="center">供货商</td>
              <td align="center">订单总价</td>
              <td align="center">分成金额</td>
              <td align="center">分成明细</td>
              <td align="center">需结算</td>
            </tr>
          </thead>
          <tbody class="ajaxdatalist" id="ajaxdatalist">
            <?php }?>
            <?php if(IS_AJAX){?>
            <!-- 数据主体 -->
            <notempty name="list">
              <volist name="list" id="vo">
                <tr class="data_list">
                  <td align="center">{$vo.ordernumber}</td>
                  <td align="center"><empty name="susername">无<else/>{$vo.susername}</empty></td>
                  <td align="center">¥{$vo.price}</td>
                  <td align="center"><notempty name='vo.affmoney'>¥<else/>无 </notempty>
                    {$vo.affmoney}</td>
                  <td align="center"><notempty name='vo.affmoney'> <a width="600" rel="{:U('Affiliatesetting/orderafflist', array('order_id' => $vo['order_id'], 'attr' => $vo['attr'], 'product_id' => $vo['product_id']))}" title="【{$vo.ordernumber}】查看分成明细" class="OptionBtn" href="javascript:void(0);">查看分成明细</a><else/>无 </notempty></td>
                  <td align="center"><span style="color:#f00; font-weight:bold;">¥{$vo.rest_money}</span></td>
                </tr>
              </volist>
              <else/>
              <tr>
                <td colspan="6" align="center">暂无信息</td>
              </tr>
            </notempty>
            <?php }?>
            <!-- 数据主体结束 -->
            
            <?php if(!IS_AJAX){?>
          </tbody>
        </table>
        <div id="ajaxdatalistpages"></div>
      </div>
    </section>
  </div>
  <div class="col-sm-5 col-md-4 col-lg-3">
    <div class="panel">
      <header class="panel-heading"> 搜索 </header>
      <div class="panel-body">
        <form id="ajaxdatalistform">
          <div class="input-group m-bot15">
            <input type="text" name="keywords" class="form-control">
            <span class="input-group-btn">
            <button type="button" onClick="$('#ajaxdatalistform').trigger('submit');" class="btn btn-default"><i class="fa fa-search"></i></button>
            </span> </div>
          <notempty name="suppier">
            <select name="supplier_id" class="form-control">
              <option value="0">请选择供货商</option>
              <volist name="suppier" id="vo"> <option 
            
                <eq name="supplier_id" value="$vo['id']">selected="selected"</eq>
                
             value="{$vo.id}">{$vo.susername}
            
                </option>
              </volist>
            </select>
          </notempty>
          下单时间：
          <input class="form-control" type="text" onclick="WdatePicker();" name="stime" value="" />
          至
          <input class="form-control" type="text" onclick="WdatePicker();" name="etime" value="" />
        </form>
      </div>
    </div>
  </div>
</div>
<include file="Public:footer" />
</body></html><?php }?>